package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Customer;
import cn.wolfcode.rbac.query.CustomerQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Long id);
    int insert(Customer record);
    Customer selectByPrimaryKey(Long id);
    List<Customer> selectAll();
    int updateByPrimaryKey(Customer record);
    List<Customer> queryForList(CustomerQueryObject qo);
    List<Customer> selectByStatus(Long status);
    void updateSeller(@Param("sellerId")Long sellerId,@Param("customerId")Long customerId);
    void updateStatus(Customer u);
}